package com.xiaoyu.awakening.records.client;


import com.xiaoyu.awakening.records.client.config.AwkRecordsClientConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * 客户端自动装配类
 *
 * @author wangxiaoyu
 * @date 2024/12/13 16:35
 * @since v1.0
 */
@EnableConfigurationProperties(AwkRecordsClientConfig.class)
@ConditionalOnProperty(prefix = "awk.records.enable", havingValue = "true")
public class AwkRecordsClientAutoConfig {

    @Bean
    public AwkRecordsClient initClient() {
        return new AwkRecordsClient();
    }
}
